//
//  FenViewController.m
//  JinChengYun
//
//  Created by 金橙云 on 2017/3/8.
//  Copyright © 2017年 金橙云. All rights reserved.
//

#import "FenViewController.h"

#import "KeAnalyzeVC.h"//客户分析
#import "QuAnalyVC.h"//去化分析
#import "AdAnalyVC.h"//广告分析
#import "DCNavTabBarController.h"
@interface FenViewController ()

@end

@implementation FenViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
    self.title = @"营销分析";
    self.view.backgroundColor = BgColor;
    
    
    
    KeAnalyzeVC *keVC = [[KeAnalyzeVC alloc] init];
    keVC.title = @"客户分析";
    
    QuAnalyVC *quVC = [[QuAnalyVC alloc] init];
    quVC.title = @"去化分析";
    
    AdAnalyVC *adVC = [[AdAnalyVC alloc] init];
    adVC.title = @"广告分析";
    
    NSArray *subViewControllers = @[keVC,quVC,adVC];
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(0, LL_StatusBarAndNavigationBarHeight, B_WIDTH, 1)];
    [self.view addSubview:view];
    
    DCNavTabBarController *tabBarVC = [[DCNavTabBarController alloc]initWithSubViewControllers:subViewControllers];
    tabBarVC.view.frame = CGRectMake(0, LL_StatusBarAndNavigationBarHeight, B_WIDTH, B_HEIGHT - LL_StatusBarAndNavigationBarHeight);
    [self.view addSubview:tabBarVC.view];
    [self addChildViewController:tabBarVC];
    

    
    
    
    
    
    
   
}






- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}




@end
